<div class="row">
	<div class="col-sm-12">
	
    	<form class="form-inline" method="get" action="<?php echo DOMAIN_ADMIN?>/permissions/">
    		<input type="text" class="form-control" name="name" value="<?php echo set_get_value('name');?>" maxlength="20" placeholder="权限名称">
    		<input type="text" class="form-control" name="link" value="<?php echo set_get_value('link');?>" placeholder="权限链接">
    		
    		<button  id="chaxun" class="btn btn-info btn-sm" type="submit" >查询</button>
    	</form>
    	<div class="space"></div>
    	
        <div>
        <a href="<?php echo DOMAIN_ADMIN?>/permissions/add/" class="btn btn-sm">添加权限</a>
        </div>
        <div class="space"></div>
        
		<table class="table table-striped table-bordered table-hover">
			<tr>
				<th>权限名称</th>
				<th>链接地址</th>
				<th>操作</th>
			</tr>
			<?php if( !empty( $permissions_all )):?>
			<?php foreach ( $permissions_all as $e ):?>
				<tr>
					<td><?php echo $e['name']?></td>
					<td><?php echo $e['link']?></td>
					<td>
						<a  href="<?php echo DOMAIN_ADMIN?>/permissions/edit?id=<?php echo $e['id'];?>">编辑</a>
						<!-- <a  href="/permissions/permissions_del?id=<?php echo $e['id'];?>" onclick="return confirm('确定要删除吗?')" >删除</a>-->

					</td>
				</tr>
				<?php endforeach;?>
			<?php endif;?>
		</table>
		
		<div class="float_right">
			<?php echo $pagelink;?>
		</div>
	</div>
</div>
<!--content-->
